package com.edu;


import com.edu.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.edu.order.mapper")
@EnableDiscoveryClient
@EnableFeignClients(basePackages={"com.api.course","com.api.sso"})
public class OrderApp {

    public static void main(String[] args) {
        SpringApplication.run(OrderApp.class,args);
    }


    @Bean
    public IdWorker getIdWorker(){
        return new IdWorker(1,1);
    }

}
